<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Apps\Apis\Common\DefCtl;

final class DefDeviceCodeCtl extends DefAbstract
{
    private const TABLE_NAME                = 'idx_device_code';
    private const FIELD_ID                  = 'ddct_id';
    private const FIELD_KEY                 = 'ddct_key';
    private const FIELD_NAME                = 'ddct_name';
    public const EXT_NAME                   = 'name';

    /**
     * @return static
     * tag
     */
    public static function tag():self
    {
        $fieldExtList   = [
            self::EXT_NAME  => self::FIELD_NAME
        ];
        return parent::tag()->config(self::TABLE_NAME, self::FIELD_ID, self::FIELD_KEY, $fieldExtList);
    }
}